package com.niubility.server.Impl;

import com.niubility.dao.AssessDao;

import com.niubility.entity.Assess;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("assessServer")
public class AssessServer {
    @Resource
    private AssessDao assessDao;

    public boolean Save(Assess assess){
        return assessDao.Save(assess)>0 ?true:false;
    }

    public List<Assess> LoadAllByNum(int artId,int num){
        return assessDao.LoadByTopNum(artId,num);
    }

}
